﻿using System;
using Microsoft.Xna.Framework;
using Terraria.UI.Chat;

namespace Terraria.GameContent.UI.Chat
{
	// Token: 0x02000409 RID: 1033
	public class PlainTagHandler : ITagHandler
	{
		// Token: 0x0600242A RID: 9258 RVA: 0x000199F0 File Offset: 0x00017BF0
		TextSnippet ITagHandler.Parse(string text, Color baseColor, string options)
		{
			return new PlainTagHandler.PlainSnippet(text);
		}

		// Token: 0x0200040A RID: 1034
		public class PlainSnippet : TextSnippet
		{
			// Token: 0x0600242C RID: 9260 RVA: 0x000199F8 File Offset: 0x00017BF8
			public PlainSnippet(string text = "") : base(text)
			{
			}

			// Token: 0x0600242D RID: 9261 RVA: 0x00019A01 File Offset: 0x00017C01
			public PlainSnippet(string text, Color color, float scale = 1f) : base(text, color, scale)
			{
			}

			// Token: 0x0600242E RID: 9262 RVA: 0x00019A0C File Offset: 0x00017C0C
			public override Color GetVisibleColor()
			{
				return this.Color;
			}
		}
	}
}
